@csrf
<div class="layui-row">
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="username" lay-verify="required"
                    value="{{$manager->username??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="name" lay-verify="required" value="{{$manager->name??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="sex" class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <select name="sex" lay-verify="required">
                    <option value="0" @if($manager->sex == 0)selected @endif>女</option>
                    <option value="1" @if($manager->sex == 1)selected @endif>男</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        @if (!$manager->manager_id)
            <div class="layui-form-item">
                <label for="password" class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="password" class="layui-input" name="password" lay-verify="required"
                        value="{{$manager->password??''}}">
                </div>
            </div>
        @endif
        <div class="layui-form-item">
            <label for="mobile" class="layui-form-label">手机</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="mobile" lay-verify="required|phone"
                    value="{{$manager->mobile??''}}">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="email" class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" class="layui-input" name="email" lay-verify="required|email"
                    value="{{$manager->email??''}}">
            </div>
        </div>
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea name="description" class="layui-textarea">{{$manager->description??''}}</textarea>
    </div>
</div>
